package org.smherwig.wlanscanner;

import java.util.Comparator;

import android.net.wifi.ScanResult;

public class ScanResultComparator implements Comparator<ScanResult>{
	@Override
	public int compare(ScanResult x, ScanResult y) {
		if (x.level > y.level)
			return -1;
		else if (x.level == y.level)
			return 0;
		else
			return 1;
	}
}
